package cn.wit.Test;

import java.util.Scanner;

/**
 * 计算素数
 * @author 16604
 *
 */

public class TestPrimeNumber {
	public static void main(String[] args) {
		int flag = 0;
		System.out.print(2+" ");
		for(int j = 3;j < 100;j++) {
			flag=0;
			for(int i = 2;i<j;i++) {
				if(j%i == 0) {
					flag = 1;
					break;
				}
			}
			if(flag == 0)
			System.out.print(j+" ");
		}
	}

}
